package org.zk.service;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.zk.dao.BoardDao;
import org.zk.entity.Board;

import java.util.List;

/**
 * 说明:版块业务层
 *
 * @姚文斌
 * @create 2019-11-18 下午 7:11
 */
@Service
public class BoardService {
    @Autowired
    @Setter
    @Getter
    private BoardDao boardDao;
    /**
     * ================================ Board 版块业务 ===================================
     */
    //1.获得所有版块
    public List<Board> getAllBoard(){
        return boardDao.getAllBoard();
    }
}
